const state = {
  chatmsg: '', //监听该值的变化可以添加到消息框中
  sendChatList:[],
}

const mutations = {
  // 设置聊天框中的内容 
  SET_CHATMSG: (state, chatmsg) => {
    state.chatmsg = chatmsg
  },

  SET_SENDCHATLIST: (state, sendChatList) => {
    state.sendChatList = [...sendChatList]
  },
}

const actions = {
//   toggleSideBar({ commit }) {
//     commit('TOGGLE_SIDEBAR')
//   },
//   closeSideBar({ commit }, { withoutAnimation }) {
//     commit('CLOSE_SIDEBAR', withoutAnimation)
//   },
//   toggleDevice({ commit }, device) {
//     commit('TOGGLE_DEVICE', device)
//   },
//   setSize({ commit }, size) {
//     commit('SET_SIZE', size)
//   },
//   toggleSideBarHide({ commit }, status) {
//     commit('SET_SIDEBAR_HIDE', status)
//   }
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
